package com.xm.bluetoothkotlin.connect.back

import android.bluetooth.BluetoothGatt
import com.xm.bluetoothkotlin.connect.BleBluetooth
import com.xm.bluetoothkotlin.device.BleConnectData
import com.xm.bluetoothkotlin.device.BluetoothDeviceData

/**
 * @创建者:小垚
 * @时间:2021/11/12
 *@描述: 连接设备回调
 */
interface BluetoothConnectCallback {
    /**
     * 开始连接
     */
    fun onStartConnect()

    /**
     * 连接失败
     */
    fun onConnectFail(device: BleBluetooth, message: String)

    /**
     * 连接成功
     */
    fun onConnectSuccess(device: BleBluetooth, gatt: BluetoothGatt, status: Int)

    /**
     * 设备断开
     */
    fun onDisConnected(isActiveDisConnected: Boolean, device: BleBluetooth, gatt: BluetoothGatt, status: Int)
}